<!--
 * @Author: guot 2870403996@qq.com
 * @Date: 2024-10-31 15:39:14
 * @LastEditors: guot 2870403996@qq.com
 * @LastEditTime: 2024-10-31 18:15:23
 * @FilePath: \xyh-largescreen-gitee\src\views\pilotZone\oneMap\cesium-common\index.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <div class="cesiumCommon">
    <video-global />
  </div>
</template>

<script lang="ts" setup>
import { onMounted } from "vue";
// import { getGlobalViewer, GlobalCesium } from "@/components/GlobalCesium";
import { VideoGlobal } from '@/components/GlobalVideo';
import { addMapData } from "./cesium-event/addMapData";
import { Cartesian3 } from "@space8/czm-plugin";

defineOptions({ name: "CesiumCommon" });

onMounted(() => {

  
  // const viewer = getGlobalViewer();
  // viewer.camera.flyTo({
  //   destination: new Cartesian3(
  //     -2609538.3555128453,
  //     4728286.219891099,
  //     3389827.9247452817
  //   ),
  //   orientation: {
  //     heading: 6.22337480212763,
  //     pitch: -0.4923415260061468,
  //     roll: 0.00013484731944490846,
  //   },
  // });
  // addMapData(viewer);
});
</script>

<style lang="less" rel="stylesheet/less" scoped>
// .cesiumCommon {
//   width: 100%;
//   height: 100%;
//   position: absolute;
//   top: 0;
//   // z-index: 2;
// }
</style>
